// import {
//   getMenu
// } from "../../services/apiRestaurant.js";
// import {useLoaderData} from "react-router-dom";
// import MenuItem from "./MenuItem.jsx";

function Menu() {
  //const menu = useLoaderData();

  return (
      <div>
        menu
        {/*<ul>*/}
        {/*  {*/}
        {/*    menu.map((pizza)=>(*/}
        {/*        <MenuItem pizza={pizza} key={pizza.id} />*/}
        {/*    ))*/}
        {/*  }*/}
        {/*</ul>*/}
      </div>
  );
}

// export async function loader(){
//   const menu = await getMenu();
//   return menu;
// }


export default Menu;
